#ifndef MYTHREAD_H
#define MYTHREAD_H
#include <QThread>
#include <QMutex>
class MyThread : public QThread
{
public:
    MyThread(QObject* parent = nullptr);

    void run();

private:
    static QMutex mutex;
    static int num;
};

#endif // MYTHREAD_H
